﻿@model IAR.Models.GoalModel
<!--Шаблон - Edit-->
<h4>New Goal</h4>
<hr />
<div class="row">
	<div class="col-md-4">
		<form asp-action="ProcessNewGoal">
			<div asp-validation-summary="ModelOnly" class="text-danger"></div>			

			<div class="form-group">
				<label asp-for="Activity" class="control-label"></label>				
				<select asp-for="Activity" class="form-control"
						asp-items="@(new SelectList(@ViewBag.ListOfActivities,"Activity", "Activity"))" required>
					<option value="">Select Activity</option>
				</select>
				<span asp-validation-for="Activity" class="text-danger"></span>
			</div>

			<div class="form-group">
				<label asp-for="Goal" class="control-label"></label>
				<input asp-for="Goal" class="form-control" placeholder="Input amount of Hours" required/>
				<span asp-validation-for="Goal" class="text-danger"></span>
			</div>			

			<div class="form-group">
				<input type="submit" value="Add" class="btn btn-primary" />
			</div>
		</form>
	</div>
</div>

<div>
	<a asp-action="Index">Back to Goals page</a>
</div>

